import request from '@/utils/request';
import { toFormData } from '@/utils/utils.jsx';
import { stringify } from 'qs';

//获取列表
export async function getTableListOp(params) {
  return request(`/blade-log/taskInfo/page?${stringify(params)}`);
}

// 操作人列表
export async function queryTakeUserList(params) {
  return request(`/blade-user/listLikeAccountOrUsername?${stringify(params)}`);
}

//删除导出任务
export async function deleteExportTask(params){
  return request('/blade-log/taskInfo/remove', {
    method: "POST",
    body: toFormData(params)
  })
}

//下载excel
export async function downLoadFileOp(params) {
  return request(`/blade-log/taskInfo/downLoadFile?${stringify(params)}`);
}